package com.rxh.mapper.finance;

import com.rxh.mapper.base.BaseMapper;
import com.rxh.pojo.finance.FinanceBusinessMoney;
import com.rxh.vo.VoFinanceBusinessMoney;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface FinanceBusinessMoneyMapper extends BaseMapper<VoFinanceBusinessMoney, Integer> {
    FinanceBusinessMoney selectByMerchantId(Integer merchantId);

    VoFinanceBusinessMoney selectByParam(VoFinanceBusinessMoney entity);

    VoFinanceBusinessMoney queryBusinessMoney(Map<String, Object> map);

    VoFinanceBusinessMoney queryTodayBusinessMoney(Map<String, Object> map);

    VoFinanceBusinessMoney querySettlePlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryNosettlePlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryDeductPlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryBondReleaseAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryBondNoReleaseAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryRefundPlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryProtestAndFeePlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryDrawingNoAuditPlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryDrawingAuditPlusAmount(Map<String, Object> map);

    VoFinanceBusinessMoney queryReturnDeductAmount(Map<String, Object> paramMap);

    Map<String, Object> getUsableAmount(Integer mer_id);

    Boolean updateFinanceBusinessMoney(Map<String, Object> paramMap);

    Boolean updateByFinanceBusinessMoney(Map<String, Object> paramMap);

    FinanceBusinessMoney getFinanceBusinessMoneyByRefId(int merId);

    int updateFinanceBusinessMoneyByPrimaryKeySelective(@Param("FinanceBusinessMoney") FinanceBusinessMoney financeBusinessMoney);

    // int updateFinanceBusinessMoneyByEntity(@Param("FinanceBusinessMoney") FinanceBusinessMoney financeBusinessMoney);
}